rem @echo off
cd LockCrypt
del LockCrypt.xpi
set basedir=%cd%
set projname=%cd%
set %winrar%=E:\progs\winrar\winrar.exe
md build\chrome
cd chrome
%winrar% a -r -ibck -m0 -afzip -n@"..\..\list.txt" "%projname%.jar"
move "%projname%.jar" "..\build\chrome\"
cd ..
rem copy install.rdf build
rem copy %basedir%\install.rdf build
copy %basedir%\chrome.manifest build
robocopy defaults build\defaults /S
rmdir /S /Q build\defaults\.svn\
rmdir /S /Q build\defaults\preferences\.svn\
cd build
%winrar% a -s -ibck -r -m5 -afzip "%projname%.xpi"
move "%projname%.xpi" ..\..\
cd ..
rd build /s/q